<?php
/**
 * Fang_Controller_Default
 * 
 * 作者:  姚刚 (yaogang@the9sense.com)
 * 创建时间: 2011-03-14 20:54:47
 * 修改记录: 
 * 
 * $Id: Default.php 18 2011-04-17 12:50:07Z coosuu $
 */

class Fang_Controller_Default extends Fang_Controller_Base {

    /**
     * indexAction
     * 首页 
     * 
     * @return void
     */
    public function indexAction() {

        if ($this->intro['i_indexpic']) {
            try {
                $photoService =& Service::factory('Photo');
                $photo = $photoService->getInfo($this->intro['i_indexpic']);
            } catch (Exception $e) {
                return $this->errorMessage($e->getMessage());
            }
            $this->view->set('photo', $photo);
        }
        return $this->view->render('default/index');
    }
}
